//
//  ViewController.m
//  GJDigitalDemo
//
//  Created by 吴棒棒 on 2021/10/30.
//

#import "ViewController.h"
#import "GJSelectView.h"
#import "DigitalViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    /// 初始化数据
//    DigitalConfig *config = [DigitalConfig shareConfig];
//    config.serverIP = @"new.guiji.ai";
//    config.servePort = 5222;
//    config.robotCode = @"230738573542952960";
//    config.robotMode = @"bot";
//    config.stunList = @[@"stun:47.114.110.197:23478"];
//    config.domain = @"guiji.ai";
//    config.resource = @"dhrtc";
//    config.userJID = @"iray-proxy@guiji.ai";
//    config.isShowLocalVideo = YES;
//    config.isShowLocalAudio = YES;
//    config.usingFrontCamera = YES;
//    config.openAsr = @"true";
    
    
    
    GJSelectView *selectView = [[NSBundle mainBundle] loadNibNamed:@"GJSelectView" owner:nil options:nil].lastObject;
    __weak typeof(self) weakSelf = self;
    selectView.startBlock = ^{
        [weakSelf initDigitalView];
    };
    [self.view addSubview:selectView];
}
- (void)initDigitalView {


    DigitalViewController *vc = [[DigitalViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
